<table>
    <tr>
        <td>Id</td>
        <td>Fecha</td>
        <td>Total</td>
        <td>Usuario</td>
        <td>Tipo</td>
        <td>Detalle</td>
    </tr>
    <?php foreach($mermas as $m): ?>
        <tr>
            <td><?php echo $m['Merma']['id']; ?></td>
            <td><?php echo $m['Merma']['fecha']; ?></td>
            <td><?php echo $m['Merma']['total']; ?></td>
            <td><?php echo $m['Usuario']['nombre'].' '.$m['Usuario']['apellido']; ?></td>
            <td><?php echo $this->Html->link('Ver detalle', array('controller' => 'MermasProductos', 'action' => 'index', $m['merma']['id'])); ?></td>
            <td><?php echo $this->Html->link('Editar', array('action' => 'edit', $m['Merma']['id'])); ?></td>
        </tr>
    <?php endforeach; ?>
</table>